package br.unifesp.lma.chamada.dao;

import org.springframework.stereotype.Repository;

import br.unifesp.lma.chamada.model.entity.Professor;

@Repository
public class ProfessorDAO extends BaseDAO<Professor> {

	public ProfessorDAO() {
		super(Professor.class);
	}

	public Professor getByEmail(String email) {
		return super.query().filter("email", email).first().get();
	}

}
